package com.lijj.flower.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.File;

/**
 * https://blog.csdn.net/weixin_33722405/article/details/88203215
 * */
@Controller
@RequestMapping("/test")
public class PostDemo {

    @RequestMapping("/post")
    public String testPost(){
        return "/postTest/postTest.html";
    }

    @RequestMapping("/urlencoded")
    public String urlencoded(String CustomerName, String CustomerTel){
        return "/postTest/postTest.html";
    }

    @RequestMapping("/formData")
    public String formData(File file1, File file2){
        return "/postTest/postTest.html";
    }

    /**
     * 暂无测试用例
     * */
    @RequestMapping("/jsonData")
    public String jsonData(File file1, File file2){
        return "/postTest/postTest.html";
    }
}
